import BaseService from "./BaseService";

/**
 * 产品service
 */
export default class ShoppingService extends BaseService {

  constructor() {
    super();
  }

  order(skuId) {
  }

  prepare(orderId, unionId) {
    const url = `${this.host}/shopping/prepare?orderId=${orderId}&unionid=${unionId}`;
    return this.post(url).then(data => data != '' ? data : Promise.reject('ORDER_PREPAY_FAIL'));
  }

  result(skuId) {

  }
}